package com.yc.projects.pro5_mySpring.test;

import com.yc.projects.pro5_mySpring.org.springframework.annotation.YcBean;
import com.yc.projects.pro5_mySpring.org.springframework.annotation.YcComponentScan;
import com.yc.projects.pro5_mySpring.org.springframework.annotation.YcConfiguration;
import com.yc.projects.pro5_mySpring.org.springframework.context.YcAnnotationConfigApplicationContext;

@YcConfiguration
//@YcComponentScan(basePackages = {"hhh","mmm"})
//@YcComponentScan(value = {"mmm"})
@YcComponentScan(basePackages = {"com.yc.projects.pro5_mySpring.test"})

public class AppConfig {
    @YcBean
    public Apple apple(){
        return new Apple();
    }
    public static void main(String[] args) {
        YcAnnotationConfigApplicationContext ac = new YcAnnotationConfigApplicationContext(AppConfig.class);
    }


}
